using System;
using System.Text;
using System.Reflection;
using System.ServiceModel;
using System.Collections.Generic;
using System.Runtime.Serialization;
using TDS = Tridion.ContentManager.Interop.TDS;
using TDSDefines = Tridion.ContentManager.Interop.TDSDefines;



#pragma warning disable 649
namespace Tridion.Gateway
{
	[DataContract]
	public class ComponentTemplate:Facade
	{
        internal ComponentTemplate(TDS.ComponentTemplate ComponentTemplate, bool ShallowCopy)
            : base(typeof(TDS._ComponentTemplate), ComponentTemplate, ShallowCopy)
		{
		}

		[DataMember(Name="ItemType")]
		private TDSDefines.ItemType itemtype;
		public TDSDefines.ItemType ItemType
		{
			 get { return itemtype; }
		}


		[DataMember(Name="ID")]
		private String id;
		public String ID
		{
			 get { return id; }
		}


		[DataMember(Name="Info")]
		private Info info;
		public Info Info
		{
			 get { return info; }
		}


		[DataMember(Name="Title")]
		private String title;
		public String Title
		{
			 get { return title; }
			 set { title = value; }
		}


        //TODO:Fix
        //[DataMember(Name="OrganizationalItem")]
        //private Object organizationalitem;
        //public Object OrganizationalItem
        //{
        //     get { return organizationalitem; }
        //}


		[DataMember(Name="isEditable")]
		private Boolean iseditable;
		public Boolean isEditable
		{
			 get { return iseditable; }
		}


		[DataMember(Name="Content")]
		private String content;
		public String Content
		{
			 get { return content; }
			 set { content = value; }
		}


		[DataMember(Name="BinaryContent")]
		private Multimedia binarycontent;
		public Multimedia BinaryContent
		{
			 get { return binarycontent; }
		}


		[DataMember(Name="ApprovalStatus")]
		private ApprovalStatus approvalstatus;
		public ApprovalStatus ApprovalStatus
		{
			 get { return approvalstatus; }
			 set { approvalstatus = value; }
		}


        //TODO:Fix
        //[DataMember(Name="TrackingCategories")]
        //private Categories trackingcategories;
        //public Categories TrackingCategories
        //{
        //     get { return trackingcategories; }
        //     set { trackingcategories = value; }
        //}


		[DataMember(Name="Priority")]
		private Int32 priority;
		public Int32 Priority
		{
			 get { return priority; }
			 set { priority = value; }
		}


        //TODO:Fix
        //[DataMember(Name="RelatedSchemas")]
        //private Schemas relatedschemas;
        //public Schemas RelatedSchemas
        //{
        //     get { return relatedschemas; }
        //     set { relatedschemas = value; }
        //}


		[DataMember(Name="IsRepositoryPublishable")]
		private Boolean isrepositorypublishable;
		public Boolean IsRepositoryPublishable
		{
			 get { return isrepositorypublishable; }
			 set { isrepositorypublishable = value; }
		}


		[DataMember(Name="AllowOnPage")]
		private Boolean allowonpage;
		public Boolean AllowOnPage
		{
			 get { return allowonpage; }
			 set { allowonpage = value; }
		}


        [DataMember(Name = "Publication")]
        private PublicationURI publication;
        public PublicationURI Publication
        {
            get { return publication; }
        }


		[DataMember(Name="TemplateType")]
		private Int32 templatetype;
		public Int32 TemplateType
		{
			 get { return templatetype; }
			 set { templatetype = value; }
		}


		[DataMember(Name="OutputFormat")]
		private TDSDefines.EnumOutputFormat outputformat;
		public TDSDefines.EnumOutputFormat OutputFormat
		{
			 get { return outputformat; }
			 set { outputformat = value; }
		}


		[DataMember(Name="DynamicTemplate")]
		private String dynamictemplate;
		public String DynamicTemplate
		{
			 get { return dynamictemplate; }
			 set { dynamictemplate = value; }
		}


		[DataMember(Name="MetadataSchema")]
		private Schema metadataschema;
		public Schema MetadataSchema
		{
			 get { return metadataschema; }
			 set { metadataschema = value; }
		}


        //TODO:Fix
        //[DataMember(Name="MetadataFields")]
        //private ItemFields metadatafields;
        //public ItemFields MetadataFields
        //{
        //     get { return metadatafields; }
        //}


		[DataMember(Name="ParameterSchema")]
		private Schema parameterschema;
		public Schema ParameterSchema
		{
			 get { return parameterschema; }
			 set { parameterschema = value; }
		}


        protected override void Initialize(FieldInfo field, PropertyInfo property, Object value)
        {

        }

	}
}

/*
			System.String Render(System.Object, System.String)
			Void SetPublishedTo(System.Object, System.Object, Boolean, System.Object)
			System.String GetXML(Tridion.ContentManager.Interop.TDSDefines.XMLReadFilter)
			Void UpdateXML(System.String)
			Void Save(Boolean)
			Void Delete()
			Void Localize()
			Void UnLocalize()
			System.String GetVersionList(Tridion.ContentManager.Interop.TDSDefines.ListColumnFilter)
			Void CheckIn(Boolean)
			Void CheckOut(Boolean)
			Void UndoCheckOut(Boolean)
			Void RollBack(Int32, Boolean)
			System.String GetRollBackComment(Int32)
			Void DeleteVersion(Int32)
			System.String Publish(System.Object, Boolean, Boolean, Boolean, System.DateTime, System.DateTime, System.DateTime, Boolean, Tridion.ContentManager.Interop.TDSDefines.EnumPublishPriority, Boolean, Int32)
			System.String UnPublish(System.Object, Boolean, Boolean, Boolean, System.DateTime, Boolean, Tridion.ContentManager.Interop.TDSDefines.EnumPublishPriority)
			System.String GetListPublishItems(System.Object, Boolean, Boolean, Tridion.ContentManager.Interop.TDSDefines.ListColumnFilter, Tridion.ContentManager.Interop.TDS.ListRowFilter)
*/
